/*
 * @description 权限相关接口服务
 * @Author: wangguangchun
 * @Date: 2023-08-09 09:09:36
 */
//const BaseUrl = process.env.VUE_APP_BASE_API;
const BaseUrl = 'http://192.168.0.107:8080/umonitor';
import axios from "../utils/request";
export default {
  /**
   * 获取用户信息
   * @param {*} data 
   * @returns 
   */
  async getUserInfo(data) {
    let result = await axios.get(BaseUrl + "/auth/getUser", {
      params: data,
    });
    return result;
  },
  /**
   * 登录
   * @param {*} data 
   * @returns 
   */
  async login(data) {
    let result = await axios.post(BaseUrl + "/auth/login", {
        params: data,
      });
      return result;
  }
};
